package com.beijiteshop.shop.model.api.response

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/8 15:36
 * @Description 商品详情
 */
@Parcelize
data class ProductDetailBean(
    val bus_GoodsID: String,
    val colors: List<String>?,
    val detailImg: List<String>,
    val goodName: String,
    val intro: String,
    val isSeckill: String,// 1：优惠商品 0 平价商品
    val isSellout: String,
    val marketPrice: String,
    val sellingPrice: String,
    val soldOut: Int,
    var specification: String?,
    val specifications: List<String>?,
    val topImgs: List<String>
): Parcelable{
    /**
     * 是否是优惠商品
     */
    fun isSeckill(): Boolean{
        return isSeckill == "1"
    }

    /**
     * 是否售罄
     */
    fun isSaleOut(): Boolean{
        return isSellout == "1"
    }
}